package com.cb.admin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cb.admin.domain.MemuInfo;
import com.cb.admin.mapper.IMemuInfoMapper;
import com.cb.admin.service.IMemuInfoService;

@Service
public class MemuInfoServiceImpl implements IMemuInfoService {
	
	@Autowired
	private IMemuInfoMapper memuInfoMapper;

	@Override
	public MemuInfo queryById(int id) {
		// TODO Auto-generated method stub
		return memuInfoMapper.queryById(id);
	}

	@Override
	public void insert(MemuInfo MemuInfo) {
		// TODO Auto-generated method stub
		memuInfoMapper.insert(MemuInfo);
	}

	@Override
	public void update(MemuInfo MemuInfo) {
		// TODO Auto-generated method stub
		memuInfoMapper.update(MemuInfo);
	}

	@Override
	public void deleteById(int id) {
		// TODO Auto-generated method stub
		memuInfoMapper.deleteById(id);
	}

	@Override
	public List<MemuInfo> query(MemuInfo menu) {
		// TODO Auto-generated method stub
		return memuInfoMapper.query(menu);
	}

	@Override
	public int querySize(MemuInfo menu) {
		// TODO Auto-generated method stub
		return memuInfoMapper.querySize(menu);
	}

	@Override
	public List<MemuInfo> getAll() {
		// TODO Auto-generated method stub
		return memuInfoMapper.getAll();
	}
}